﻿using System;

namespace AutoDb {
	/// <summary>
	/// 
	/// </summary>
	sealed class DbColumn : DbObject {
		/// <summary>
		/// 
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		public DbType DbType { get; set; }

		/// <summary>
		/// 
		/// </summary>
		public int Size { get; set; }

		/// <summary>
		/// 
		/// </summary>
		public bool? Unique { get; set; }

		/// <summary>
		/// 
		/// </summary>
		public bool? PrimaryKey { get; set; }

		/// <summary>
		/// 
		/// </summary>
		public string DefaultValue { get; set; }

		/// <summary>
		/// 
		/// </summary>
		/// <param name="lineInfo"></param>
		public DbColumn(string lineInfo)
			: base(lineInfo) {
		}
	} // end of DbColumn.
}
